import http from 'k6/http';
import {check} from 'k6';

export let options={
	vus:1,
	duration:'1s',	
};

export default function(){
	var url = 'http://demoUrl';

	var patientData = JSON.stringify({
		name:'测试06',
		administrativeGenderCode:'1',
		birthplace:'上海市浦东新区',
		district:'上海市',
		ids:[{
			'code':'1.11',
			'identifier':'06'
		}],
	});
	var params = {
		headers:{
			'Content-Type':'application/json',
			'Authorization':'89e605492909b0196e0ca25a0cc0205c1d97540e339ba2664bf3bcb59144dc9d',
		},
		
	};
	let res = http.post(url, patientData, params);
	check(res, {'status was 200':(r)=>r.status==200});
	
}